package com.wuyou.designPatterns.flyweight;

import java.util.Scanner;

/**
 * Main
 *
 * @Date 2024/10/18 11:12
 * @Author 无忧
 */
public class Main {

    public static void main(String[] args) {
        while (true) {
            Scanner scanner = new Scanner(System.in);
            String s = scanner.next();
            if (s.equals("exit")) {
                break;
            }
            BigString bs = new BigString(s);
            bs.print();
        }
    }
}
